﻿using System;
using System.Text;
using Newtonsoft.Json;

namespace Hongsh.Pay.Client.Proxy.Http {
    // Token: 0x02000032 RID: 50
    public class HttpJsonResult : HttpTextResult {
        // Token: 0x17000097 RID: 151
        // (get) Token: 0x0600016D RID: 365 RVA: 0x00003007 File Offset: 0x00001207
        public object Content { get; }

        // Token: 0x17000098 RID: 152
        // (get) Token: 0x0600016E RID: 366 RVA: 0x0000300F File Offset: 0x0000120F
        public override string Text => JsonConvert.SerializeObject(Content);

        // Token: 0x0600016F RID: 367 RVA: 0x0000301C File Offset: 0x0000121C
        public HttpJsonResult(object content) : this(Encoding.UTF8, content) {
            //Class15.cwcZ3SWztHroi();
            //this..ctor(Encoding.UTF8, content);
        }

        // Token: 0x06000170 RID: 368 RVA: 0x0000302F File Offset: 0x0000122F
        public HttpJsonResult(Encoding encoding, object content) : base(encoding, null, "application/json") {
            //Class15.cwcZ3SWztHroi();
            // base..ctor(encoding, null, "application/json");
            Content = content;
        }
    }
}
